﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="AccountInfo.aspx.cs" Inherits="AccountInfo" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <div class="post">
        <asp:Label ID="Label1" runat="server" Text="<%$Resources:Resource,accountpagestatus %>"></asp:Label>
        <div class="entry">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="TenDangNhap"
                DataSourceID="SqlDataSource1" Width="100%" BackColor="White" BorderColor="White"
                BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" GridLines="None">
                <Columns>
                    <asp:BoundField DataField="TenDangNhap" HeaderText="TenDangNhap" ReadOnly="True"
                        SortExpression="TenDangNhap" />
                    <asp:BoundField DataField="MatKhau" HeaderText="MatKhau" SortExpression="MatKhau" />
                    <asp:BoundField DataField="LoaiTK" HeaderText="LoaiTK" SortExpression="LoaiTK" />
                    <asp:BoundField DataField="HoTen" HeaderText="HoTen" SortExpression="HoTen" />
                    <asp:BoundField DataField="DiaChi" HeaderText="DiaChiEmail" SortExpression="DiaChi" />
                    <asp:BoundField DataField="DienThoai" HeaderText="DienThoai" SortExpression="DienThoai" />
                    <asp:BoundField DataField="MaTheThanhToan" HeaderText="MaTheThanhToan" SortExpression="MaTheThanhToan" />
                </Columns>
                <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                <SortedAscendingCellStyle BackColor="#F1F1F1" />
                <SortedAscendingHeaderStyle BackColor="#594B9C" />
                <SortedDescendingCellStyle BackColor="#CAC9C9" />
                <SortedDescendingHeaderStyle BackColor="#33276A" />
            </asp:GridView>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                SelectCommand="SELECT * FROM [ThanhVien] WHERE ([TenDangNhap] = @TenDangNhap)">
                <SelectParameters>
                    <asp:CookieParameter CookieName="username" Name="TenDangNhap" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            <br />
            <table width="100%">
                <tr>
                    <td colspan="2" style="font-weight: 700; color: #FFFFFF; text-align: center; background-color: #0066FF;
                        font-size: large">
                        <asp:Literal ID="Literal1" runat="server" Text="<%$Resources:Resource, accChange%>" />
                    </td>
                </tr>
                
                <tr>
                    <td align="center">
                        <table>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" Text="<%$Resources:Resource, passwordsign%>"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="PasswordRq" runat="server" Text="*" ControlToValidate="Password"
                                        ErrorMessage="blabla" Style="color: #FF0000; font-size: x-small"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="ConfirmPassLabel" runat="server" AssociatedControlID="ConfirmPass"
                                        Text="<%$Resources:Resource, confirmpasswordsign%>"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="ConfirmPass" runat="server" TextMode="Password"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" ControlToValidate="ConfirmPass"
                                        ErrorMessage="Confirm Password is required.">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="NameLabel" runat="server" AssociatedControlID="fullname" Text="<%$Resources:Resource,fullname %>"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="FullName" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email" Text="E-Mail:"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="Email" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="UserTypeLabel" runat="server" AssociatedControlID="UserType" Text="<%$Resources:Resource, usertype%>"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="UserType" runat="server" Width="138px">
                                        <asp:ListItem Value="5" Text="<%$Resources:Resource, personal%>" />
                                        <asp:ListItem Value="4" Text="<%$Resources:Resource, bussiness%>" />
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="PhoneNumberLabel" runat="server" AssociatedControlID="PhoneNumber"
                                        Text="<%$Resources:Resource,phonenumber %>"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="PhoneNumber" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="Cardlabel" runat="server" AssociatedControlID="CardID" Text="<%$Resources:Resource,cardid %>"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="CardID" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="2">
                                    <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password"
                                        ControlToValidate="ConfirmPass" Display="Dynamic" ErrorMessage="<%$Resources:Resource,errorPass %>">
                                    </asp:CompareValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="2">
                                    <asp:Label ID="lbMessage" runat="server" Style="color: #FF0000"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <asp:Button ID="btupdate" runat="server" OnClick="UpdateButton_Click" Text="<%$Resources:Resource, btUpdate%>"
                            Style="height: 26px" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
